import request from '@/utils/request'

// 查询用户浏览足迹列表
export function listHistory(query) {
  return request({
    url: '/system/browseHistory/list',
    method: 'get',
    params: query
  })
}

// 查询用户浏览足迹详细
export function getHistory(browseId) {
  return request({
    url: '/system/browseHistory/' + browseId,
    method: 'get'
  })
}

// 新增用户浏览足迹
export function addHistory(data) {
  return request({
    url: '/system/browseHistory',
    method: 'post',
    data: data
  })
}

// 修改用户浏览足迹
export function updateHistory(data) {
  return request({
    url: '/system/browseHistory',
    method: 'put',
    data: data
  })
}

// 删除用户浏览足迹
export function delHistory(browseId) {
  return request({
    url: '/system/browseHistory/' + browseId,
    method: 'delete'
  })
}
